
clear
%*-------------------- Synchronization Preamble ---------------------------------------------------%
Rate_8PSK = 4800;   % rate of the miniprobes


Sync_Preamble = [1,5,1,3,6,1,3,1,1,6,3,7,7,3,5,4,3,6,6,4,5,4,0,...
                               2,2,2,6,0,7,5,7,4,0,7,5,7,1,6,1,0,5,2,2,6,2,3,...
                               6,0,0,5,1,4,2,2,2,3,4,0,6,2,7,4,3,3,7,2,0,2,6,...
                               4,4,1,7,6,2,0,6,2,3,6,7,4,3,6,1,3,7,4,6,5,7,2,...
                               0,1,1,1,4,4,0,0,5,7,7,4,7,3,5,4,1,6,5,6,6,4,6,...
                               3,4,3,0,7,1,3,4,7,0,1,4,3,3,3,5,1,1,1,4,6,1,0,...
                               6,0,1,3,1,4,1,7,7,6,3,0,0,7,2,7,2,0,2,6,1,1,1,...
                               2,7,7,5,3,3,6,0,5,3,3,1,0,7,1,1,0,3,0,4,0,7,3];
                                      
Mini_Probe_Plus = [0,0,0,0,0,2,4,6,0,4,0,4,0,6,4,2,0,0,0,0,0,2,4,6,0,4,0,4,0,6,4];
Mini_Probe_Plus_Modulated =  HF_Modulate(Mini_Probe_Plus,Rate_8PSK);

Mini_Probe_Minus = [4,4,4,4,4,6,0,2,4,0,4,0,4,2,0,6,4,4,4,4,4,6,0,2,4,0,4,0,4,2,0];

%*---------------------------------------------------------------------------------------------------*%

LUT_D(:,:,1) = [0 0 0 2 2 2;
                          0 0 0 2 2 2;
                          0 0 0 2 2 2;
                          6 6 6 4 4 4;
                          6 6 6 4 4 4];

LUT_D(:,:,2) = [0 2 2 0 0 2;
                          6 4 4 6 6 4;
                          6 4 4 6 6 4;
                          0 2 2 0 0 2;
                          0 2 2 0 0 2];
                        
LUT_D(:,:,3) = [4 6 4 6 4 6;
                          2 0 2 0 2 0;
                          4 6 4 6 4 6;
                          2 0 2 0 2 0;
                          4 6 4 6 4 6];
                        
%*---------------------------------------------------------------------------------------------------*%                        

LUT_S(:,:,1) = [0 0 0 0 0 0;
                         0 0 0 0 0 0;
                         0 0 0 0 0 0;
                         1 1 1 1 1 1;
                         1 1 1 1 1 1];
                     
LUT_S(:,:,2) = [0 0 0 0 0 0;
                         1 1 1 1 1 1;
                         1 1 1 1 1 1;
                         0 0 0 0 0 0;
                         0 0 0 0 0 0];
                     
LUT_S(:,:,3) = [1 1 1 1 1 1;
                         0 0 0 0 0 0;
                         1 1 1 1 1 1;
                         0 0 0 0 0 0;
                         1 1 1 1 1 1];
                     
LUT_S(:,:,4) = [0 0 0 1 1 1;
                         0 0 0 1 1 1;
                         0 0 0 1 1 1;
                         0 0 0 1 1 1;
                         0 0 0 1 1 1];
                     
LUT_S(:,:,5) = [0 1 1 0 0 1;
                         0 1 1 0 0 1;
                         0 1 1 0 0 1;
                         0 1 1 0 0 1;
                         0 1 1 0 0 1];
                     
LUT_S(:,:,6) = [1 0 1 0 1 0;
                         1 0 1 0 1 0;
                         1 0 1 0 1 0;
                         1 0 1 0 1 0;
                         1 0 1 0 1 0];
                         
%*---------------------------------------------------------------------------------------------------*%
                     
save Preamble

